<?php
$basedir = dirname(__FILE__);

require_once $basedir . '/../classes/minime.php';
require_once $basedir . '/../extlib/Crypt/RSA.php';
require_once $basedir . '/../extlib/Crypt/Random.php';
require_once $basedir . '/../extlib/Crypt/Hash.php';
require_once $basedir . '/../extlib/Math/BigInteger.php';

MiniMe::initialize();

//$acct = "acct:tkoski@identi.ca";
//$dicoverer = new Discovery_Uri($acct);
//
//$dicoverer->discover();
//echo "\n URI                 :" . $acct;
//echo "\n name                :" . $dicoverer->getName();
//echo "\n logo                :" . $dicoverer->getLogo();
//echo "\n feed                :" . $dicoverer->getAtomFeedUri();
//echo "\n hub                 :" . $dicoverer->getHubUri();
//echo "\n salmon              :" . $dicoverer->getSalmonUri();
//echo "\n WebfingerProfilepage:" . $dicoverer->getWebfingerProfilePageUri();
//echo "\n MagicPublicKey      :" . $dicoverer->getMagicPublicKey();
//echo "\n";
//
//$acct = "acct:koski.tuomas@gmail.com";
//$dicoverer = new Discovery_Uri($acct);
//$dicoverer->discover();
//echo "\n URI                 :" . $acct;
//echo "\n name                :" . $dicoverer->getName();
//echo "\n logo                :" . $dicoverer->getLogo();
//echo "\n feed                :" . $dicoverer->getAtomFeedUri();
//echo "\n hub                 :" . $dicoverer->getHubUri();
//echo "\n salmon              :" . $dicoverer->getSalmonUri();
//echo "\n WebfingerProfilepage:" . $dicoverer->getWebfingerProfilePageUri();
//echo "\n MagicPublicKey      :" . $dicoverer->getMagicPublicKey();
//
//echo "\n\n\tDONE\n\n";
//
//$acct = "acct:koski@lobstermonster.org";
//$dicoverer = new Discovery_Uri($acct);
//$dicoverer->discover();
//echo "\n URI                 :" . $acct;
//echo "\n name                :" . $dicoverer->getName();
//echo "\n logo                :" . $dicoverer->getLogo();
//echo "\n feed                :" . $dicoverer->getAtomFeedUri();
//echo "\n hub                 :" . $dicoverer->getHubUri();
//echo "\n salmon              :" . $dicoverer->getSalmonUri();
//echo "\n WebfingerProfilepage:" . $dicoverer->getWebfingerProfilePageUri();
//echo "\n MagicPublicKey      :" . $dicoverer->getMagicPublicKey();
//
//
//$acct = "http://evan.status.net";
//$dicoverer = new Discovery_Uri($acct);
//$dicoverer->discover();
//echo "\n URI                 :" . $acct;
//echo "\n name                :" . $dicoverer->getName();
//echo "\n logo                :" . $dicoverer->getLogo();
//echo "\n feed                :" . $dicoverer->getAtomFeedUri();
//echo "\n hub                 :" . $dicoverer->getHubUri();
//echo "\n salmon              :" . $dicoverer->getSalmonUri();
//echo "\n WebfingerProfilepage:" . $dicoverer->getWebfingerProfilePageUri();
//echo "\n MagicPublicKey      :" . $dicoverer->getMagicPublicKey();
//
//$acct = "http://eschnou.com";
//$dicoverer = new Discovery_Uri($acct);
//$dicoverer->discover();
//echo "\n URI                 :" . $acct;
//echo "\n name                :" . $dicoverer->getName();
//echo "\n logo                :" . $dicoverer->getLogo();
//echo "\n feed                :" . $dicoverer->getAtomFeedUri();
//echo "\n hub                 :" . $dicoverer->getHubUri();
//echo "\n salmon              :" . $dicoverer->getSalmonUri();
//echo "\n WebfingerProfilepage:" . $dicoverer->getWebfingerProfilePageUri();
//echo "\n MagicPublicKey      :" . $dicoverer->getMagicPublicKey();
//
//$acct = "http://identi.ca/user/37";
//$dicoverer = new Discovery_Uri($acct);
//$dicoverer->discover();
//echo "\n URI                 :" . $acct;
//echo "\n name                :" . $dicoverer->getName();
//echo "\n logo                :" . $dicoverer->getLogo();
//echo "\n feed                :" . $dicoverer->getAtomFeedUri();
//echo "\n hub                 :" . $dicoverer->getHubUri();
//echo "\n salmon              :" . $dicoverer->getSalmonUri();
//echo "\n WebfingerProfilepage:" . $dicoverer->getWebfingerProfilePageUri();
//echo "\n MagicPublicKey      :" . $dicoverer->getMagicPublicKey();

//$acct = "http://identi.ca/user/52467";
//$dicoverer = new Discovery_Uri($acct);
//$dicoverer->discover();
//echo "\n URI                 :" . $acct;
//echo "\n name                :" . $dicoverer->getName();
//echo "\n logo                :" . $dicoverer->getLogo();
//echo "\n feed                :" . $dicoverer->getAtomFeedUri();
//echo "\n hub                 :" . $dicoverer->getHubUri();
//echo "\n salmon              :" . $dicoverer->getSalmonUri();
//echo "\n WebfingerProfilepage:" . $dicoverer->getWebfingerProfilePageUri();
//echo "\n MagicPublicKey      :" . $dicoverer->getMagicPublicKey();

$acct = "http://identi.ca/group/xmpp";
$dicoverer = new Discovery_Uri($acct);
$dicoverer->discover();
echo "\n URI                 :" . $acct;
echo "\n name                :" . $dicoverer->getName();
echo "\n logo                :" . $dicoverer->getLogo();
echo "\n feed                :" . $dicoverer->getAtomFeedUri();
echo "\n hub                 :" . $dicoverer->getHubUri();
echo "\n salmon              :" . $dicoverer->getSalmonUri();
echo "\n WebfingerProfilepage:" . $dicoverer->getWebfingerProfilePageUri();
echo "\n MagicPublicKey      :" . $dicoverer->getMagicPublicKey();

echo "\n\n\tDONE\n\n";
